player addweapon "ItemGPS";
if (isnil "ggggggggggggggggggg" ) then {ggggggggggggggggggg=0};

if (ggggggggggggggggggg==0) then
{
hint "Adding Vehicle Markers";
	ggggggggggggggggggg=1;
	VL = vehicles;
	k = count VL;
	l = 0;
	MV = true;
	
	while {MV} do
	{
	VL = vehicles;
	k = count VL;
	l = 0;

		for "l" from 0 to k do
		{
			veh = VL select l;
			deleteMarkerLocal ("VM"+ (str l));
			mk2 = "VM" + (str l);
			mk2 = createMarkerLocal [mk2,getPos veh];
			mk2 setMarkerTypeLocal "waypoint";
			mk2 setMarkerPosLocal (getPos veh);
			mk2 setMarkerColorLocal("ColorRed");
			mk2 setMarkerTextLocal format ["%1",typeOf veh];
		};
		sleep 1;
	};
}
else
{
hint "VM Stopping";
	l = 0;
	MV = false;
	ggggggggggggggggggg=0;

		for "l" from 0 to k do
		{
			deleteMarkerLocal ("VM"+ (str l));
		};
};